package com.vietnam.power.service;

import java.util.List;

import javax.mail.MessagingException;

import com.vietnam.power.domain.MessageInfo;
import com.vietnam.power.domain.MessageSearchCriteria;


public interface MessageService {
	
	public void createMessage(MessageInfo mess);
	
	public void createEmail(MessageInfo mess);
	
	public List<MessageInfo> searchMessages(MessageSearchCriteria tsc);
	
	public void deleteMessages(int id);
	
	public void moveToTrash(int id);
	
	public MessageInfo getMessageById(int id);
	
	public void markMessageAsRead(int id);
	
	public void markMessageAsUnRead(int id);
	
	public void sendEmail() throws MessagingException;
	
	public void fetchEmail() throws Exception;
}
